import http from '@/utils/request'


const basePath = process.env.VUE_APP_BASE_TT_IM


//查询好友申请列表信息
export function groupAdd(data) {
    return http({
        url: `${basePath}/im-chat-group`,
        method: "post",
        data: data
    })
}

//查询群聊列表
export function groupList() {
    return http({
        url: `${basePath}/im-chat-group`,
        method: "get"
    })
}


//查询群聊消息列表
export function groupChatMsgList(data) {
    return http({
        url: `${basePath}/im-chat-msg/groupChatMsgList?receiverPerson=${data}`,
        method: "get"
    })
}